Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 23: Adding Fog

../ch23/23fig03c.gif
Figure 23.3c

An exponential foggy world with a visibility range of 20.0. Compare with Figures 23.3a and b.

23fig03c.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Group {
    children [
        Fog {
            color 1.0 1.0 1.0
            fogType "EXPONENTIAL"
            visibilityRange 20.0
        },
        Background { skyColor 1.0 1.0 1.0 },
        Inline { url "fogworld.wrl" }
    ]
}